
@include('public.header')
    <div class="wrapper row-offcanvas row-offcanvas-left">
        <!-- Left side column. contains the logo and sidebar -->
        @include('public.sidebar')

        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="right-side">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                    后台首页
                    <small>控制面板</small>
                </h1>
            </section>

            <!-- Main content -->
            <section class="content">
                <div class="row">
                    <div class="col-md-12">
                        <?php var_dump(get_cycle_dan(1000,28)); ?>
                        <?php //echo array_sum(get_dan(1000,14)) ?>
                        <!-- AREA CHART -->
                        <div class="box box-primary">
                            <div class="box-header">
                                <h3 class="box-title">本周期刷单计划</h3>
                            </div>
                            <div class="box-body chart-responsive">
                                <div class="chart" id="revenue-chart" style="height: 300px;"></div>
                            </div>
                            <div class="box-footer">
                                <table class="table table-hover">
                                        <tbody><tr>
                                            <th>日期</th>
                                            <th>计划刷单数</th>
                                            <th>实际刷单数</th>
                                            <th>对比</th>
                                            <th>计划转化率</th>
                                            <th>实际转化率</th>
                                            <th>对比转化率</th>
                                            <th>备注</th>
                                        </tr>
                                        <tr>
                                            <td>2014-9-10</td>
                                            <td>John Doe</td>
                                            <td>2014-9-10</td>
                                            <td>John Doe</td>
                                            <td>11-7-2014</td>
<td>2014-9-10</td>
                                            <td>John Doe</td>
                                            <td>John Doe</td>                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td>219</td>
                                            <td>Jane Doe</td>
                                            <td>11-7-2014</td>
                                            <td><span class="label label-warning">Pending</span></td>
                                            <td>doner.</td>
                                            <td>2014-9-10</td>
                                            <td>John Doe</td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td>657</td>
                                            <td>Bob Doe</td>
                                            <td>11-7-2014</td>
                                            <td><span class="label label-primary">Approved</span></td>
                                            <td>Baconner.</td>
                                            <td>2014-9-10</td>
                                            <td>John Doe</td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td>175</td>
                                            <td>Mike Doe</td>
                                            <td>11-7-2014</td>
                                            <td><span class="label label-danger">Denied</span></td>
                                            <td>Bk doner.</td>
                                            <td>2014-9-10</td>
                                            <td>John Doe</td>
                                            <td></td>
                                        </tr>
                                    </tbody></table>
                            </div>
                            <!-- /.box-body -->
                        </div><!-- /.box -->
                    </div><!-- /.col (LEFT) -->
                </div><!-- /.row -->


            </section>
            <!-- /.content -->
        </aside>
        <!-- /.right-side -->
    </div>
    <!-- ./wrapper -->
    <script>
        $(function(){
            // AREA CHART
                var area = new Morris.Line({
                    element: 'revenue-chart',
                    resize: true,
                    data: [
                        {y: '2014-09-10', item1: 300, item2: 350},
                        {y: '2014-09-11', item1: 400, item2: 380},
                        {y: '2014-09-12', item1: 500, item2: 480},
                        {y: '2014-09-13', item1: 520, item2: 550},
                        {y: '2014-09-14', item1: 550, item2: 600},
                        {y: '2014-09-15', item1: 530, item2: 542},
                        {y: '2014-09-16', item1: 545, item2: 532},
                        {y: '2014-09-17', item1: 500, item2: 455},
                        {y: '2014-09-18', item1: 560, item2: 453},
                        {y: '2014-09-19', item1: 587, item2: 587}

                    ],
                    xkey: 'y',
                    ykeys: ['item1', 'item2'],
                    labels: ['计划刷单数', '实际刷单数'],
                    lineColors: ['#a0d0e0', '#f00'],
                    hideHover: false,
                    xLabels:'day'
                });

        });
    </script>

@include('public.footer')